home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / text / hyper / ManualBrows1_1.lha / Globals.h < prev    next >
C/C++ Source or Header  |  1994-11-12  |  3KB  |  116 lines

  1. /************************************************************************/
  2. /*                                    */
  3. /*  Copyright (C) 1994  Christian Stieber                */
  4. /*                                    */
  5. /* This program is free software; you can redistribute it and/or modify    */
  6. /* it under the terms of the GNU General Public License as published by    */
  7. /* the Free Software Foundation; either version 2 of the License, or    */
  8. /* (at your option) any later version.                    */
  9. /*                                    */
  10. /* This program is distributed in the hope that it will be useful,    */
  11. /* but WITHOUT ANY WARRANTY; without even the implied warranty of    */
  12. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
  13. /* GNU General Public License for more details.                */
  14. /*                                    */
  15. /* You should have received a copy of the GNU General Public License    */
  16. /* along with this program; if not, write to the Free Software        */
  17. /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.        */
  18. /*                                    */
  19. /************************************************************************/
  20. /*                                    */
  21. /* Author address:                            */
  22. /*   Christian Stieber                            */
  23. /*   Konradstraße 41                            */
  24. /*   D-85055 Ingolstadt                            */
  25. /*   (Germany)                                */
  26. /*   Phone: 0841-59896                            */
  27. /*                                    */
  28. /************************************************************************/
  29.  
  30. #define PROGVERSION    "1.1"
  31. #define PROGDATE    "11.11.94"
  32.  
  33. /************************************************************************/
  34.  
  35. #if defined(mc68060)
  36.    #define CPU "68060"
  37. #elif defined(mc68040)
  38.    #define CPU "68040"
  39. #elif defined(mc68030)
  40.    #define CPU "68030"
  41. #elif defined(mc68020)
  42.    #define CPU "68020"
  43. #elif defined(mc68000)
  44.    #define CPU "68000"
  45. #endif
  46.  
  47. /************************************************************************/
  48.  
  49. struct ActionNode
  50.    {
  51.       struct ActionNode *Next;
  52.       char *Pattern;
  53.       char Action[3];   /* '\0' for Action, char[2] for Pattern */
  54.    };
  55.  
  56. /************************************************************************/
  57.  
  58. extern struct ExecBase *SysBase;
  59.  
  60. extern struct DosLibrary *DOSBase;
  61. extern struct IntuitionBase *IntuitionBase;
  62. extern struct Library *AmigaGuideBase;
  63. extern struct Library *UtilityBase;
  64.  
  65. /************************************************************************/
  66.  
  67. extern struct ActionNode *ActionList;
  68. extern BPTR ManDir;
  69. extern long LineLength;
  70. extern char DatabaseName[64];
  71.  
  72. /************************************************************************/
  73.  
  74. #ifdef __GNUC__
  75. ULONG AmigaGuideHostDispatcher(Msg);
  76. #else
  77. ULONG __saveds __asm AmigaGuideHostDispatcher(register __a1 Msg);
  78. #endif
  79.  
  80. /************************************************************************/
  81.  
  82. void exit(int);
  83. char *Sprintf(char *, char *, ...);
  84.  
  85. #ifdef __GNUC__
  86. ULONG HookEntryA1(Msg);
  87. #endif
  88.  
  89. /************************************************************************/
  90.  
  91. void *Malloc(ULONG);
  92. void Free(void *);
  93.  
  94. int ReadConfigFile(BPTR ConfigFile, struct ActionNode **ActionList);
  95.  
  96. /************************************************************************/
  97.  
  98. #ifdef __GNUC__
  99.  
  100. static __inline char *Stpcpy(char *Dest, char *Source)
  101.  
  102. {
  103.    while ((*Dest=*Source))
  104.       {
  105.          Dest++;
  106.          Source++;
  107.       }
  108.    return Dest;
  109. }
  110.  
  111. #else
  112.  
  113. #define Stpcpy(a,b) stpcpy(a,b)
  114.  
  115. #endif
  116.